package com.example.library.bean.response;

public enum FailureCause {

    USER_ALREADY_EXIST(0, "该学生号已被注册"),
    WRONG_PASSWORD(0,"学生号或密码错误"),
    NO_SUCH_USER(0,"没有找到该用户"),
    REPEAT_COLLECTION(0,"错误收藏操作"),
    REPEAT_BORROW(0,"错误借阅操作"),
    NO_MORE_BOOK(0,"图书余量不足");

    private int code;
    private String message;

    FailureCause(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}